#!/usr/bin/python
# Filename: wirr.py

import os
from time import sleep

os.system("clear")
print '---------------------------------------------------------------'
print '              --==[podesavanje wirelles mreze]==--             '
print '---------------------------------------------------------------'
os.system("ifconfig wlan0 up")
ssid = raw_input('unesi ssid: ')
os.system('iwconfig wlan0 essid %s' %ssid) 
#os.system('iwconfig wlan0 essid ' + ssid)
os.system("dhcpcd wlan0")
sleep(3)
os.system("clear")
print 'Uspesno ste konektovani na ',ssid
sleep(3)
#os.system("firefox")
os.system("clear")
print '---------------------------------------------------------------'
print '       --==[ podesavanje wirelles mreze zavrseno... ]==--      '
print '---------------------------------------------------------------'
